package com.leyou.common.exception.pojo;

import lombok.Getter;

/**
 * 用于封装返回给前端的异常数据
 */
@Getter
public class ExceptionResult {
    private String message;
    private Integer status;

    public ExceptionResult(LyException e){
        this.message = e.getMessage();
        this.status = e.getStatus();
    }
}
